package com.example.demo.security;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

public class SecurityUser extends User{
	private static final long serialVersionUID = -8770810455732005102L;
	
	private int enabled;
	
	public SecurityUser(String username, String password, Collection<? extends GrantedAuthority> authorities,int enabled) {
		super(username, password, authorities);
		this.enabled=enabled;
	}
	
	public int getEnabled() {
		return enabled;
	}

}
